#include "widget.h"
#include "ui_widget.h"

#include <QPushButton>
#include <QDebug>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
//    QPushButton* button = new QPushButton(this);
//    button->move(200, 200);
//    button->setText("按钮");
//    connect(button, &QPushButton::clicked, this, [](){
//        qDebug() << "lambda执行";
//    });
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    this->setWindowTitle("hhahaha");
}
